﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Class1
    {
        //自动属性
        public int IdCar { get; set; }
        public string CarName { get; set; }
        public  void dw() {
            Console.WriteLine("车牌号是{0}，名字是{1}", this.IdCar,this.CarName);
        }
    }
}
